package snake;

/**
 * User: luotao
 * Date: 11-5-3
 */
enum GameStatus {
    prepare(1),
    running(2),
    pause(3),
    end(4);

    private int code; //状态码值

    GameStatus(int code) { //非public构造方法
        this.code = code;
    }

    @Override
    public String toString() {
        return String.valueOf(code);
    }
}
